package cn.rkylin.oms.goods.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.goods.vo.GoodsCategoryVO;

@Repository(value = "goodsCategoryDAO")
public class GoodsCategoryDAOImpl implements IGoodsCategoryDAO{

    @Autowired
    protected IDataBaseFactory dao;

    /**
     * 构造函数
     */
    public GoodsCategoryDAOImpl() {

    }

    @Override
    public List<GoodsCategoryVO> findByWhere(GoodsCategoryVO goodsCategoryVO) throws Exception {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public int insert(GoodsCategoryVO goodsCategoryVO) throws Exception {
        return dao.insert("insertSelectiveGoodsCategory", goodsCategoryVO);
    }

    @Override
    public int update(GoodsCategoryVO goodsCategoryVO) throws Exception {
        return dao.update("updateByPrimaryKeySelectiveGoodsCategory", goodsCategoryVO);
    }

    @Override
    public int delete(String id) throws Exception {
        // TODO Auto-generated method stub
        return 0;
    }

}
